import handler
from models import directories

class CreateDir(handler.BasicHandler):
    def run(self, app, input):
        self.input = input
        if not self.is_valid_input(): return { error: 'InvalidArguments' }

    def is_valid_input(self):
        return 'directory' in self.input or 'directoryId' in self.input
